﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.JSInterop;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DomSharp
{
    public static class DomSharpExtension
    {
        public static IApplicationBuilder UseDomSharp(this IApplicationBuilder applicationBuilder)
        {
            Document.JSRuntime = applicationBuilder.ApplicationServices.GetRequiredService<IJSRuntime>();
            return applicationBuilder;
        }
    }
}
